package com.heima.apis.channel;

import com.heima.apis.article.fallback.IArticleClientFallback;
import com.heima.apis.channel.fallback.IChannelClientFallback;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 频道远程调用
 */                                                            //实现服务降级
@FeignClient(value = "leadnews-wemedia",fallback = IChannelClientFallback.class)
public interface IChannelClient {


    /**
     * 查看所有频道
     * @return
     */
    @GetMapping("/api/v1/channel/channels")
    public ResponseResult findAll();


}



